﻿#ifndef LINEEDIT_H
#define LINEEDIT_H

#include <QLineEdit>
#include <QString>
#include "ResizeBase.h"
#include <QFont>
#include "ui_base_lib_global.h"
class UI_BASE_LIBSHARED_EXPORT LineEdit : public QLineEdit,public ResizeBase
{
    Q_OBJECT
public:
    explicit LineEdit(QWidget *parent = nullptr);


    void initStyleSheet(QString sytle);

    static void initLineEdit(LineEdit* p , int x , int y , int w , int h ,QString style);
signals:


    void evt_valueChanged(float value);
    void evt_valueChanged(QString value);

protected:
    virtual void focusOutEvent(QFocusEvent *);
    virtual void focusInEvent(QFocusEvent *);
public slots:

    void on_textEdit(QString str);

    void on_updateUi(float value);

        void on_Enter();
};

#endif 
